package com.jx.lcs.integral.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 用户积分
 */
@Entity
@Table(name = "tb_user_integral")
@DynamicInsert
@DynamicUpdate
public class UserIntegral implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "ID", unique = true, nullable = false)
	private String id;			//ID 
	
	@Column(name = "UID")
	private String uid;		//理财师
	
	@Column(name = "TITLE")
	private String title;		//标题
	
	@Column(name = "SOURCE")
	private String source;		//积分来源
	
	@Column(name = "SOURCECODE")
	private String sourceCode;	//产品编号
	
	@Column(name = "INCOMETYPE")
	private String incomeType;	//收支类型
	
	@Column(name = "SCORE")
	private int score;			//分数

	@Column(name = "RECORDTIME")
	@Temporal(TemporalType.TIMESTAMP)
	private Date recordTime;	//记录时间
	
	@Transient
	private String jxId;
	
	@Transient
	private String userName;
	
	@Transient
	private String userDept;
	
	@Transient
	private String telephone;
	
	@Transient
	private String city;
	
	@Transient
	private String postLevel;
	
	@Transient
	private String headImg;
	
	@Transient
	private Integer incomeScore;
	
	@Transient
	private Integer outputScore;
	
	@Transient
	private Integer restScore;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getSourceCode() {
		return sourceCode;
	}

	public void setSourceCode(String sourceCode) {
		this.sourceCode = sourceCode;
	}

	public String getIncomeType() {
		return incomeType;
	}

	public void setIncomeType(String incomeType) {
		this.incomeType = incomeType;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserDept() {
		return userDept;
	}

	public void setUserDept(String userDept) {
		this.userDept = userDept;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPostLevel() {
		return postLevel;
	}

	public void setPostLevel(String postLevel) {
		this.postLevel = postLevel;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public Integer getIncomeScore() {
		return incomeScore;
	}

	public void setIncomeScore(Integer incomeScore) {
		this.incomeScore = incomeScore;
	}

	public Integer getOutputScore() {
		return outputScore;
	}

	public void setOutputScore(Integer outputScore) {
		this.outputScore = outputScore;
	}

	public Integer getRestScore() {
		return restScore;
	}

	public void setRestScore(Integer restScore) {
		this.restScore = restScore;
	}

	public String getJxId() {
		return jxId;
	}

	public void setJxId(String jxId) {
		this.jxId = jxId;
	}
	
}
